//
//  XJGoodsDetailModel.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/5/16.
//  Copyright © 2018年 Tzyang. All rights reserved.
//  

#import "XJGoodsDetailModel.h"

@implementation XJGoodsDetailModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
    return @{@"goodNumber":@"code",
             @"goodsId":@"id"
             };
}

//在这里进行切割 并给 imagesArray 赋值
- (void)setImages:(NSString *)images {
    _images = images;
    
    //切割字符串
    self.imagesArray = [self sepWithStr:images];
}


/**
   "images":"http://static.zertone1.com/3Q3lzuL2zA46ev3Alg6CdfH6IDxsXztJ.jpg?imageView2/2/w/1000/h/1000,http://static.zertone1.com/YS9IzfHGIYvIMf8vCqAW0P5tVqAODJoR.png?imageView2/2/w/1000/h/1000",
 */
- (NSArray *)sepWithStr:(NSString *)str {
   NSArray *imgArr = [str componentsSeparatedByString:@","];
    return imgArr;
}

@end

